package com.yunxi.service.localService.sys;

import com.yunxi.core.service.IServicePlus;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface ToolService extends IServicePlus<T> {

    @Transactional(timeout = 5000, readOnly = true)
    int exist6(Map<String, Object> map);

    @Transactional(timeout = 5000, readOnly = true)
    int exist(String table_name, String col_name, String col_value, String where,String idName,String idValue);

    @Transactional(timeout = 5000, readOnly = true)
    int exist2(String table_name, String col_key, String col_value, String col_key2, String col_value2, String where);

    @Transactional(timeout = 5000, readOnly = true)
    List<HashMap> dict_list(String table_name, String dict_key, String dict_value, String where);
}